home *** CD-ROM | disk | FTP | other *** search
-
-
-
- ATEXIT(3) MINTLIB LIBRARY FUNCTIONS ATEXIT(3)
-
-
- N✓NA✓AM✓ME✓E
- atexit - register exit cleanup function
-
- S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
- #include <stdlib.h>
-
- int atexit(void (*)(void));
-
- D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
- atexit registers exit cleanup functions to be called when
- the process is terminated using exit. The functions sup-
- plied should not need any parameters and should not return
- any values.
-
- Processes terminated by calling _exit will circumvent any
- registered cleanup functions.
-
- R✓RE✓ET✓TU✓UR✓RN✓N V✓VA✓AL✓LU✓UE✓ES✓S
- 0 on success. -1 on failure; errno is set to indicate
- the error.
-
- S✓SE✓EE✓E A✓AL✓LS✓SO✓O
- e✓ex✓xi✓it✓t(✓(3✓3)✓),✓, _✓_e✓ex✓xi✓it✓t(✓(3✓3)✓)
-
- N✓NO✓OT✓TE✓E
- ANSI requires atexit to be able to register at least 32
- functions. The mintlibs allocate memory dynamically
- through using malloc; it is hoped this is okay.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- MiNT docs 0.1 3 March 1993 1
-
-
-